package plus.stmt;

import plus.Gripe;

public class P_Next extends Statement {
	final String label;
	Loop target;
	public P_Next(String label) { this.label = label; }
	@Override
	public void threadScope() {
		Gripe.context = this; 
		target = Loop.find(label);
		if (null == target) throw new plus.Gripe("no target for next statement");
	}
	@Override
	public void compile() { target.again.JMP(); }
}
